home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / librw / RWOrderedIterator.z / RWOrderedIterator
Encoding:
Text File  |  2002-10-03  |  4.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4. RRRRWWWWOOOOrrrrddddeeeerrrreeeeddddIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++))))                                RRRRWWWWOOOOrrrrddddeeeerrrreeeeddddIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++))))
  5.  
  6.  
  7.  
  8. NNNNaaaammmmeeee
  9.      RWOrderedIterator - Rogue Wave library class
  10.  
  11. SSSSyyyynnnnooooppppssssiiiissss
  12.               #include <rw/ordcltn.h>
  13.  
  14.  
  15.  
  16.               RWOrdered a ;
  17.           RWOrderedIterator iter(a);
  18.  
  19.  
  20.  
  21.  
  22. DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  23.      Iterator for class RRRRWWWWOOOOrrrrddddeeeerrrreeeedddd.  Traverses the collection from the first to
  24.      the last item. Like all Rogue Wave iterators, the "current item" is
  25.      undefined immediately after construction -- you must define it by using
  26.      ooooppppeeeerrrraaaattttoooorrrr(((()))) or some other (valid) operation.  Once the iterator has
  27.      advanced beyond the end of the collection it is no longer valid --
  28.      continuing to use it will bring undefined results.
  29.  
  30. PPPPeeeerrrrssssiiiisssstttteeeennnncccceeee
  31.      None
  32.  
  33. PPPPuuuubbbblllliiiicccc CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrrssss
  34.               RRRRWWWWOOOOrrrrddddeeeerrrreeeeddddIIIItttteeeerrrraaaattttoooorrrr(const RWOrdered& a);
  35.  
  36.  
  37.      Construct an RRRRWWWWOOOOrrrrddddeeeerrrreeeeddddIIIItttteeeerrrraaaattttoooorrrr from an RRRRWWWWOOOOrrrrddddeeeerrrreeeedddd.  Immediately after
  38.      construction the position of the iterator is undefined.
  39.  
  40. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr OOOOppppeeeerrrraaaattttoooorrrr
  41.               virtual RWCollectable*
  42.           ooooppppeeeerrrraaaattttoooorrrr(((())))();
  43.  
  44.  
  45.      Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr.  Advances the iterator to the next item
  46.      and returns it. Returns nil when the end of the collection is reached.
  47.  
  48. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr FFFFuuuunnnnccccttttiiiioooonnnnssss
  49.               virtual RWCollectable*
  50.           ffffiiiinnnnddddNNNNeeeexxxxtttt(const RWCollectable*);
  51.  
  52.  
  53.      Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr.  Moves iterator to the next item which
  54.      iiiissssEEEEqqqquuuuaaaallll to the item pointed to by target and returns it.  If no item is
  55.      found, returns nil and the position of the iterator will be undefined.
  56.  
  57.               virtual RWCollectable*
  58.           kkkkeeeeyyyy() const;
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RRRRWWWWOOOOrrrrddddeeeerrrreeeeddddIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++))))                                RRRRWWWWOOOOrrrrddddeeeerrrreeeeddddIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++))))
  71.  
  72.  
  73.  
  74.      Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr.  Returns the item at the current
  75.      iterator position.
  76.  
  77.               virtual void
  78.           rrrreeeesssseeeetttt();
  79.  
  80.  
  81.      Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr.  Resets the iterator to its starting
  82.      state.
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.